home *** CD-ROM | disk | FTP | other *** search
/ 8bitfiles.net/archives / archives.tar / archives / compuserve-file-archive / 08 System Utilities / EXPLOR.DOC < prev    next >
Text File  |  2019-04-13  |  16KB  |  412 lines

  1.  
  2.  
  3.                                   EXPLORER II
  4.  
  5.                 Commodore 128 - 80 column Disk Utility Program.
  6.  
  7.                             Written by Rick Simon
  8.                               and placed within
  9.                               the Public Domain.
  10.  
  11.               This program may be copied and distributed for free.
  12.                             It may not be sold.
  13.  
  14.  
  15.  
  16.  This program will only operate on the Commodore 128 computer. It utilizes 
  17. the 80 column screen in Fast mode, and should work with any Commodore 
  18. compatible disk drive and printer. It was compiled using Basic 128 by 
  19. Abacus Software to increase the speed of the program. It's features are:
  20.  
  21.    #1.  Multi-file copier using one or more disk drives (single/dual).
  22.    #2.  Full sector editor capable of reaching track 70 on the 1571.
  23.    #3.  Print files to the screen or printer as normal characters, with
  24.         control codes trapped, with control codes as ASCII codes, or
  25.         all characters as ASCII codes.
  26.    #4.  Unscratch command to retrieve accidently erased files.
  27.    #5.  Trace data sectors of files to screen or printer.
  28.    #6.  Full directory of disk including scratched files.
  29.    #7.  Screen dump to printer.
  30.    #8.  Multi-file scratch command.
  31.    #9.  Access to full disk commands.
  32.    #10. Ability to change file types from/to Prg/Seq/Usr format.
  33.  
  34. -----------------------------------------------------------------------
  35.                               THE MAIN MENU
  36.  
  37. $ - Directory:
  38.  
  39.  This command will call up the entire directory of the disk and display it 
  40. to the screen. Included will be the name, type, size, track & sector of the 
  41. first data block for each file on the disk. Also, the remaining blocks free 
  42. on the disk. Included are any scratched files on the disk. Additionally, 
  43. the disk name, ID, and type of format (1541/1571) will be displayed in the 
  44. upper window. Up to twenty file names may be viewed at any given time. If 
  45. there are over 20 files on the disk, the first 20 will be shown, and a 
  46. message at the bottom of the screen telling how many files total are on the 
  47. disk. (see scrolling below)
  48.  
  49. NOTE: The format type displayed in the upper window is the disk format,
  50.       NOT the type of drive.
  51.  
  52.  
  53. > - Disk Commands:
  54.  
  55.  This calls up the disk commands menu. (see below)
  56.  
  57.  
  58.  
  59.  
  60. C - Copy files:
  61.  
  62.  This command will allow for the copying of program, sequential, or user 
  63. files from the currently listed Source drive to the listed Destination 
  64. drive. If the same drive is listed for both, a 54K buffer will be used for 
  65. the copying. The buffer will accept files up to 219 blocks long. If two 
  66. different drives are used, file size is only limited by disk space. You 
  67. will be prompted for the file(s) you wish to copy. Enter the number of the 
  68. file from the directory and press RETURN. The cursor will reappear with the 
  69. same prompt. You may either enter more file numbers, or press the RETURN 
  70. key by itself to begin copying. You will be asked if you wish to format the 
  71. destination disk. The copier is not 'blazing' fast, but it will allow 
  72. copying between different types of disk drives (i.e. 1571 and 1541, 1571 
  73. and MSD, etc.) I timed the copy speed out at approx. 1.5 seconds per block. 
  74. The name of the current file being copied will be displayed along with the 
  75. number of bytes in the file.
  76.  
  77.  
  78. T - Trace File:
  79.  
  80.  This command will print out to the screen or the printer a track and 
  81. sector trace of the data blocks for the requested file. Simply enter the 
  82. number of the file you wish to have traced. You will then see the track and 
  83. sector of each data block printed across the screen (or printer if 
  84. selected). The name of the file will be displayed in the upper window (or 
  85. printed on the paper).
  86.  
  87.  
  88. U - Unscratch Command:
  89.  
  90.  This command allows you to change a Deleted (scratched) file back to it's 
  91. original format, and will re-allocate all of the blocks used by that file. 
  92. It will also let you change any Prg, Seq, or Usr file on the disk to any of 
  93. those three formats. This is handy for converting that Seq word processor 
  94. file over to Prg format so your 'other' word processor can read it, or vice 
  95. versa. You will be prompted for the file number, and which type format 
  96. (P,S,U) you wish to change it to. Pressing RETURN by itself at the file 
  97. name prompt will abort from this command back to the Main Menu.
  98.  
  99. WARNING: To insure the proper restoration of a scratched file, you must
  100.          not save or append any data on the disk after scratching the
  101.          file, and before using this command.
  102.  
  103.  
  104. P - Print File:
  105.  
  106.  This command will print to the screen or printer the contents of any Prg, 
  107. Seq, or Usr file. Pressing RETURN by itself at the file number prompt will 
  108. abort back to the menu. While the file is being printed, you may pause it 
  109. at any time by pressing any key. At that time you can either abort out of 
  110. it by pressing the 'Q' key, or restart by pressing any other key. 
  111. Additionally, there are four different 'translation' types for the data. 
  112. You will be prompted for which Translation type you wish (1,2,3,4). They 
  113. are as follows:
  114.  
  115.  
  116.   1. This prints all characters as their equivalent CHR$ codes.
  117.  
  118. WARNING: This includes such codes as cursor colors, clear screen, home
  119.          cursor, flash on/off, reverse on/off, set windows, etc. If
  120.          this option is used to print the file to the screen, there is
  121.          no telling what your screen will look like at the end of it.
  122.  
  123.   2. This prints all normal characters (letters,numbers,etc.) normally.
  124.      All control codes mentioned in the Warning above are trapped and
  125.      appear as a white period. Recommend this option for printing to
  126.      the screen. If you press Return at the Translation prompt, this
  127.      translation option is used.
  128.   3. Same as #2 above except, trapped characters are printed as their
  129.      equivalent number inside white brackets. For instance, a Reverse
  130.      On would appear as:  [ 18]  -  equivalent to CHR$(18)
  131.   4. This prints ALL characters as ASCII equivalents inside brackets.
  132.      This is handy for dumping out to printer the numbers needed for
  133.      POKE statements for machine language programs/sub-routines.
  134.  
  135.  
  136. B - Block Editor:
  137.  
  138.  Calls the sector editor menu. (see below)
  139.  
  140.  
  141. E - Exit:
  142.  
  143.  This exits the entire program. You are prompted:    'Are You Sure ?'
  144.  
  145.  
  146. ^ - Screen Dump:
  147.  
  148.  Pressing the up arrow key (next to the asterisk key, not the cursor key) 
  149. will do a screen dump to the selected printer. This is an 'invisible' 
  150. command and does not appear in the menu.
  151.  
  152.  
  153. <- - New Parameters:
  154.  
  155.  Pressing the left arrow key (next to the 1, not the cursor key) will allow 
  156. you to set the parameters for your peripherals. You will be prompted for 
  157. the Source device number (8 to 30) and drive number (0 or 1), the 
  158. Destination device number (8 to 30) and drive number (0 or 1), the printer 
  159. device number (4 to 7), and the printer secondary address (0 to 255). When 
  160. answering the prompts, pressing the RETURN key by itself will leave the 
  161. device numbers for the Source drive, Destination drive, and printer the 
  162. same as they were. The drive numbers and printer secondary address will be 
  163. changed to zero unless otherwise specified. This is an 'invisible' command 
  164. which does not appear on the menu.
  165.  
  166.  
  167. Up/Down Cursor keys:
  168.  
  169.  These keys may be used to scroll the disk directory up or down when it is 
  170. displayed if there are more files on the disk than can be displayed at one 
  171. time. These are 'invisible' commands and do not appear on the menu.
  172.  
  173.  
  174.  
  175.  
  176.  
  177. ----------------------------------------------------------------------
  178.                         BLOCK EDITOR MENU
  179.  
  180. F1 - Chain Block:
  181.  
  182.  This command will read the byte under the cursor as the next Track, the 
  183. byte to the right of the cursor as the next Sector, and attempt to jump to 
  184. and display that block. This is very handy when tracing a file on the disk 
  185. since the first two bytes of any Sector are the Track and Sector of the 
  186. next data block in that file. This also works well when going from the 
  187. directory entry for a file to the first block of that file.
  188.  
  189.  
  190. F2 - Read Block:
  191.  
  192.  This command will prompt you for the specific Track and Sector you wish to 
  193. view.
  194.  
  195.  
  196. F3 - Directory:
  197.  
  198.  This command will jump to and display Track 18, Sector 1. This is the 
  199. beginning of the directory entries for all files on the disk.
  200.  
  201.  
  202. F4 - Write Block:
  203.  
  204.  This command will write the contents visible on the screen to the Track 
  205. and Sector presently accessed (shown in the upper window) of the presently 
  206. selected Destination drive.
  207.  
  208.  
  209. F5 - ASCII Edit:
  210.  
  211.  This command displays the block data on the screen in it's ASCII format. 
  212. All control codes are trapped and printed as white periods, similar to 
  213. Translation option 2 in the Print File section of the main menu.
  214.  
  215.  
  216. F6 - HEX Edit:
  217.  
  218.  This command displays the block data on the screen in it's Hexadecimal 
  219. format. This is handy for figuring out what all those white periods are! 
  220. <<grin>>
  221.  
  222.  
  223. F7 - Exit:
  224.  
  225.  This command exits the block editor back to the main menu.
  226.  
  227.  
  228. F8 - Copy Block:
  229.  
  230.  This command allows you to copy the contents of the block displayed on the 
  231. screen to any other block on the disk. You will be prompted for the Track 
  232. and Sector number where you want the data written to. This is handy for 
  233. experimentation purposes.
  234.  
  235.  
  236. ^ - Screen Dump:
  237.  
  238.  This is an 'invisible' command. (see above in main menu)
  239.  
  240.  
  241. <- - New Parameters:
  242.  
  243.  This is an 'invisible' command. (see above in main menu)
  244.  
  245.  
  246. Cursor Keys:
  247.  
  248.  The cursor keys (including the 'home' key) will move the cursor around the 
  249. screen to the desired byte of the displayed block. These are also 
  250. 'invisible' commands and do not appear on the menu.
  251.  
  252.  
  253.  
  254.                          EDITING SECTOR DATA
  255.  
  256.  While the sector data is displayed on the screen you may move the cursor 
  257. over any specific byte and change the contents of that byte. If using ASCII 
  258. Edit, pressing any key will change the byte under the cursor to that keys 
  259. equivalent. If in HEX Edit, a valid, two digit Hex number must be keyed in 
  260. prior to the byte being changed. As in normal screen editing, when a byte 
  261. has been changed, the cursor will automatically move to the next byte by 
  262. itself. Changed bytes will be printed in a different color to highlight 
  263. which bytes have been edited. You may freely change back and forth between 
  264. HEX and ASCII edit modes while editing the data. Any already edited data 
  265. will remain edited. Once the data has been edited to your satisfaction, you 
  266. must use the Write Block option to save the edited data onto the disk. Any 
  267. other command will leave the original data as it was on the disk.
  268.  
  269. WARNING: If you are not familiar with editing data directly on the disk
  270.          with a sector editor this way, it is highly advised that you
  271.          experiment on a backup disk first. Changing the wrong byte can
  272.          make it impossible to access a file on the disk using the
  273.          normal Load command, and in certain cases, to Load ANY file
  274.          from the disk without changing the byte back.
  275.  
  276. NOTES: This utility can teach you alot about how files are stored on
  277.        your disks. If you are just starting to get interested in this
  278.        area, I highly recommend you copy a couple of different files
  279.        onto a disk to experiment with. While looking around with this
  280.        utility on the disk, the info in the back of the disk drive
  281.        manual concerning the way data is stored in the directory, and
  282.        the different file types can be invaluable in aiding you. It
  283.        also gives you the ability to perform some 'tricks'. For
  284.        instance, locate a file name in the directory. You will see the
  285.        file name and a series of A0's (in HEX Edit) after the name.
  286.        Change the first six A0's immediately after the name to the
  287.        following in Hex:   22 2C 38 2C 31 3A    The next time you list
  288.        the directory with the Directory or Catalog commands, or by
  289.        Load '$',8 you will see that the listing will show the file
  290.        size and name as normal, but in between the file name and the
  291.        file type will appear ,8,1:   Many other 'tricks' are possible.
  292.  
  293.  
  294. ----------------------------------------------------------------------
  295.                          DISK COMMANDS MENU
  296.  
  297. $ - Directory:
  298.  
  299.  Same as in main menu, above.
  300.  
  301.  
  302. H - Header Disk:
  303.  
  304.  This command will format the disk in the Source drive. You will be 
  305. prompted for the new name and ID for the disk. If the RETURN key is pressed 
  306. by itself at the name prompt, the name of the disk will be 'file copy 
  307. disk'. If at the ID prompt, the fast format option will be used (i.e. 
  308. erases the directory only, takes approx. 4 seconds).
  309.  
  310. NOTE: The fast format option may only be used on disks which have
  311.       previously been fully formatted.
  312.  
  313.  
  314. V - Validate Disk:
  315.  
  316.  This is the same as the Collect command. It will check to insure that only 
  317. the proper blocks on the disk are allocated. Use this command to 'erase' 
  318. 'Splat' files (improperly closed files marked with an asterisk in the 
  319. directory). Length of time for the completion of this command will vary 
  320. depending on number of files on disk.
  321.  
  322.  
  323. I - Initialize:
  324.  
  325.  This resets the disk drive to it's normal power up condition.
  326.  
  327.  
  328. S - Scratch File(s):
  329.  
  330.  This is a multi-file Scratch command. You will be prompted for the number 
  331. of the file you wish to Scratch. After answering the prompt, the prompt and 
  332. cursor will reappear. At that time you may enter more file numbers for 
  333. Scratching, or press RETURN by itself to begin scratching the file(s).
  334.  
  335.  
  336. R - Rename File:
  337.  
  338.  This command will rename a file on the disk. You will be prompted for the 
  339. Old file name. At this time you may either type in the old name, or type in 
  340. the file number preceded by the # symbol. You will then be prompted for the 
  341. new name for the file.
  342.  
  343.  
  344. G - Get Status:
  345.  
  346.  This command reads and displays the error channel data from the disk 
  347. drive. Press any key to erase the data and continue.
  348.  
  349.  
  350.  
  351.  
  352.  
  353. > - Freehand Command:
  354.  
  355.  This command allows you to send any valid command string to the drive (up 
  356. to 46 characters in length). For instance, entering    s0:test.docs would 
  357. scratch a file named 'test.docs' from the disk. Reference your disk drive 
  358. manual for more information on the available commands for your drive.
  359.  
  360.  
  361. E - Exit:
  362.  
  363.  This command exits back to the main menu.
  364.  
  365.  
  366. ^ - Screen dump:
  367.  
  368.  This is an 'invisible' command. (same as in main menu above)
  369.  
  370.  
  371. <- - New Parameters:
  372.  
  373.  This is an 'invisible' command. (same as in main menu above)
  374.  
  375.  
  376. Up/Down Cursor Keys:
  377.  
  378.  This is an 'invisible' command. (same as in main menu above)
  379.  
  380.  
  381. NOTE: All of the above commands affect the Source drive only.
  382.  
  383. ----------------------------------------------------------------------
  384.  
  385. FINAL NOTES:
  386.  
  387.  Many of the commands in this program (such as Trace File, Rename 
  388. File,etc.) require that you have the directory of the disk called up prior 
  389. to their use.
  390.  
  391.  This program will not access Relative files in it's present format. An 
  392. update allowing this may be forthcoming if I receive enough requests for 
  393. one.
  394.  
  395.  The Header, Scratch File(s), and Exit Program commands include an 'Are You 
  396. Sure? prompt.
  397.  
  398.  I did not use the 'Burst' command with this program. The primary reason 
  399. for this is that when invoked, all checksums are ignored. The odds are good 
  400. that the file would be properly copied even without them, but I wasn't 
  401. willing to take the chance with any of my data. Not when I've put hours (or 
  402. even weeks) into putting it together in the first place. As noted above, 
  403. the copier isn't very fast. Nor will it defeat copy protection techniques. 
  404. It wasn't designed to do that. However, it should work on any Commodore 
  405. compatible drive without any problems. I have tested it with a 1571 and 
  406. 1541 without any problems. Over all, I had fun putting this program 
  407. together, and I hope you find it useful.
  408.  
  409.  
  410.  
  411. "d
  412.